﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PIMS.WorkPlugin
{
    public class Weight
    {
        public static int PLC心跳 { get; } = 0;
        public static int 大料允许标志 { get; } = 1;
        public static int 大料写入标志 { get; } = 2;
        public static int 小料允许标志 { get; } = 3;
        public static int 小料写入标志 { get; } = 4;
        public static int 大料包装机编号 { get; } = 5;
        public static int 大料年份 { get; } = 6;
        public static int 大料批次代号 { get; } = 7;
        public static int 临时 { get; } = 8;
        public static int 小料包装机编号 { get; } = 9;
        public static int 小料年份 { get; } = 10;
        public static int 小料批次代号 { get; } = 11;

    }

    /// <summary>
    /// 二包 或 料箱分离
    /// </summary>
    public class Packer
    {
        public static int 上位机心跳 { get; } = 0;
        public static int 包装完成标志 { get; } = 1;
        public static int 请求新批次信息标志 { get; } = 2;
        public static int 上位机写入完成反馈 { get; } = 3;
        public static int 批次信息 { get; } = 4;
        public static int 大料批次 { get; } = 5;
        public static int 大料料况 { get; } = 6;
        public static int 大料尺寸 { get; } = 7;
        public static int 大料前缀 { get; } = 8;
        public static int 大料后缀 { get; } = 9;
        public static int 小料批次 { get; } = 10;
        public static int 小料料况 { get; } = 11;
        public static int 小料尺寸 { get; } = 12;
        public static int 小料前缀 { get; } = 13;
        public static int 小料后缀 { get; } = 14;
        public static int 投料年份 { get; } = 16;
        public static int 当前包装批次 { get; } = 17;
        public static int 当前包装尺寸 { get; } = 18;
        public static int 当前包装计数 { get; } = 19;
        public static int 当前包装箱码 { get; } = 20;
    }


    /// <summary> 
    /// 码垛PLC
    /// 值与S7PLCDataPalletizer1对应
    /// </summary>
    public class PAL
    {
        public static int 订单开始 { get; set; } = 0;

        public static int 订单结束 { get; set; } = 1;

        public static int 执行订单成功 { get; set; } = 2;
        public static int 接收数据成功 { get; set; } = 3;
        public static int 接收数据失败 { get; set; } = 4;
        public static int 结束订单成功 { get; set; } = 5;
        public static int 结束订单失败 { get; set; } = 6;

        public static int 上位机心跳 { get; set; } = 7;
        public static int 订单信息 { get; set; } = 8;

        public static int 喷码长度 { get; set; } = 9;

        public static int 喷码内容 { get; set; } = 10;




        public static int 写入通知 { get; set; } = 11;

        public static int PLC心跳 { get; set; } = 12;

        public static int 芯片ID { get; set; } = 13;
        public static int 芯片内容 { get; set; } = 14;
        public static int 袋数 { get; set; } = 15;

    }

    /// <summary>
    /// 托标PLC
    /// </summary>
    public class label
    {
        public static int 订单开始 { get; set; } = 0;

        public static int 订单结束 { get; set; } = 1;

        public static int 上位机心跳 { get; set; } = 2;
        public static int 贴标长度 { get; set; } = 3;

        public static int 贴标内容 { get; set; } = 4;

    }
}
